<style>
    #table1 tr:hover {
        background-color: yellow;
    }
</style>
<table width="90%" class="table" id="table1">
    <tr>
        <th colspan="7">买什么？</th>
        <th colspan="3">振动幅度</th>
        <th colspan="4">什么时候买？（共3次）</th>
        <th></th>
    </tr>
    <tr>
        <!--<th>id</th>-->
        <th>排序</th>
        <!--<th>代码</th>-->
        <th>名称</th>
        <th>市值(亿)</th>
        <th>最高价</th>
        <th>最低价</th>
        <th>昨天价</th>
        <th>当前价</th>
        <th>当前价日</th>
        <th>当前回撤%</th>
        <th>当前反弹%</th>
        <th>最大回撤%</th>

        <th>小于60%</th>
        <th>跌幅60%</th>
        <th>跌幅70%</th>
        <th>跌幅80%</th>
        <th>相关基金</th>
    </tr>
    <tr th:each="s : ${stocks}">
        <!--<td th:text="${s.id}"></td>-->
        <td th:text="${s.index}"></td>
        <!--<td th:text="${s.code}"></td>-->
        <td >
            <a th:if="${s.jys !='hk'}" target="_blank" th:href="${'https://quote.eastmoney.com/' + s.jys + s.code + '.html'}" th:text="${s.name}"></a>
            <a th:if="${s.jys =='hk'}" target="_blank" th:href="${'https://quote.eastmoney.com/' + s.jys + '/' + s.code + '.html'}" th:text="${s.name}"></a>
        </td>
        <td th:text="${#numbers.formatDecimal(s.shiZhi/100000000, 1, 2)}"></td>
        <td th:text="${s.maxPrice}"></td>
        <td th:text="${s.minPrice}"></td>
        <td th:text="${s.prePrice}"></td>
        <td th:text="${s.nowPrice}"></td>
        <td th:text="${#dates.format(s.nowPriceDate, 'MM-dd')}"></td>
        <td th:text="${#numbers.formatDecimal((1 - s.prePrice/s.maxPrice) * 100, 1, 2) + '->' + #numbers.formatDecimal((1 - s.nowPrice/s.maxPrice) * 100, 1, 2)}"></td>
        <td th:text="${#numbers.formatDecimal(((s.nowPrice-s.minPrice)/s.maxPrice) * 100, 1, 2)}"></td>
        <td th:text="${#numbers.formatDecimal((1 - s.minPrice/s.maxPrice) * 100, 1, 2)}"></td>
        <!--买-->
        <td ><span th:class="${s.suggestionType.value == 1} ? 'select': ''">等待</span></td>
        <td ><span th:class="${s.suggestionType.value == 2} ? 'select': ''">+20%</span></td>
        <td ><span th:class="${s.suggestionType.value == 3} ? 'select': ''">+30%</span></td>
        <td ><span th:class="${s.suggestionType.value == 4} ? 'select': ''">+50%</span></td>

        <td>
            <div th:if="${maxShizhi == null}">
                <a th:href="'/fundByStock?stockId=' + ${s.id}" target="_blank">查看</a>
                <a th:href="'/biz/delStock?stockId=' + ${s.id}" target="_blank">取关</a>
            </div>
            <a th:if="${maxShizhi != null && !s.hasFollow}"  th:href="'/biz/addStock?stockId=' + ${s.id}" target="_blank">关注</a>
        </td>
    </tr>
</table>